package org.aiforum.backend.service;

import java.util.List;

import org.aiforum.backend.common.QueryPreperty;
import org.aiforum.backend.common.Response;
import org.aiforum.domain.Plate;

public interface PlateService {
  /**
   * 保存板块
   */
	Response insert(Plate plate);
	
	/**
	 * 修改板块
	 */
	Response update(Plate plate);
	
	/**
	 * 根据ID查找板块
	 */
	Plate find(int plateId);
	
	/**
	 * 根据ID删除板块
	 */
	Response delete(int plateId);
	
	/**
	 * 根据属性查找板块
	 */
	List<Plate> queryByPreperty(QueryPreperty queryPreperty);
	
	/**
	 * 检查是否存在板块
	 */
	Response checkExists(QueryPreperty queryPreperty);
}
